package com.moon.consumer01;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexControllerTet {
    @Autowired
    private IndexApi indexController;
    @RequestMapping(value = "/index")
    public String fun(){
        String s = indexController.index();
        return s;
    }
}
